from django.contrib import admin
from .models import *
# Register your models here.

@admin.register(Domain)
class DomainAdmin(admin.ModelAdmin):
	date_hierarchy = 'create_at'
	readonly_fields = ('create_at', 'modify_at')
	search_fields = ['word','word_pinyin','word_addreviation']
	list_filter = ('domain_available','word_addreviation_available','processed','stars','category')
	list_display = ('word','word_pinyin','domain','domain_available','domain_expire_date','word_addreviation','word_addreviation_available','word_addreviation_expire_date','stars','processed')
